import React from 'react';
import {

} from 'react-native';

import CommonChatItemView from '../common/CommonChatItemView';

export default class HeartLoveChatItemView extends CommonChatItemView {
  constructor(props) {
    super(props);
  }

  _getOtherAvarta() {
    if(this.props.userData && this.props.userData.image_urls &&
        (this.props.userData.image_urls instanceof Array) && this.props.userData.image_urls.length > 0) {
      return this.props.userData.image_urls[0];
    }
    else if(this.props.userData && this.props.userData.avatar_url) {
      return this.props.userData.avatar_url;
    }
    return "";
  }

  _checkIsSelf() {
    return !this.props.userData || this.props.data.reciever_id == this.props.userData.lover_id;
  }
}
